import React, { useEffect, useState } from 'react'

export default function Trap() {
    const [count,setCount] = useState(0)
    useEffect(()=>{
        setInterval(()=>{
            setCount(count+1)
        },1000)
        return ()=>{
            clearInterval()
        }
    },[count])
  return (
    <div>{count}</div>
  )
}
